package xunhuan;

public class Demo8 {

	public static void main(String[] args) {
		double s=9527,c=0;
				
        
			while (s%10>=1) {
				c=s%10;
				
			}

		System.out.println(c);
		
	}
}